

// var urlroot = "http://hqpos.zoomdo.top";
// if (process.env.NODE_ENV == "development") {
//     urlroot = "/";
// }



module.exports = {
    publicPath: "/",
    assetsDir: "./assets",

    devServer: {
        port: 8890,
        host: '0.0.0.0',
        hot: false,
        proxy: {
            "/ossjson": {
                target: 'https://financeoss.aigauss.com',
                changeOrigin: true,
                pathRewrite: {
                    '^/ossjson': ''
                },
            },
            // 测试
            "/api": {
                target: 'http://hqpos.zoomdo.top',
                changeOrigin: true,
            },
            "/game/apiaz": {
                target: 'http://10.0.9.60:5560',
                changeOrigin: true,
                pathRewrite: {
                    '^/game/apiaz': ''
                },
            },

        },
        compress: true,
        disableHostCheck: true,
    },


    configureWebpack: config => {
        config.devtool = "source-map"
        if (process.env.NODE_ENV === 'production') {
            config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
        }
    }



}